const productionConfig = require('./webpack.config.prod');

module.exports = {
  ...productionConfig,

  devServer: {
    port: 8888, // 端口号
    open: true, // 自动打开浏览器
    compress: true, //启动gzip压缩
    liveReload: true, //启动自动更新
    historyApiFallback: true, //使用history路由
    //配置代理跨域
    proxy: {
      "/api": {
        target: "http://127.0.0.1:8080",
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  },

  mode: "development"
}